package com.hyl.weapon;

import com.hyl.creature.Creature;

/**
 * @description:
 * @author: molar
 * @date: Created in 2020/6/14 11:53
 * @version:
 * @modified By:
 */
public class CureWeaponWhiteChess extends CureAndAttackWeapon {


    public CureWeaponWhiteChess(String id, String description, int addPoints, int damagePoints) {
        super(id, description, addPoints, damagePoints);
    }

    @Override
    public void useSingleFunctionArticle(Creature curedCreature) {
        curedCreature.setHPValue(curedCreature.getHPValue()+this.getAddPoints());
    }

    @Override
    public void useDoubleFunctionArticle(Creature userCreature, Creature targetCreature) {
        userCreature.setHPValue(userCreature.getHPValue()+this.getDamagePoints());
        targetCreature.setHPValue(targetCreature.getHPValue()+this.getAddPoints());
    }
}
